
package org.example.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;

/**
 * 新闻头条实体类
 * 对应数据库表: news_headline
 *
 * @TableName 注解标识对应的数据库表名
 */
@Data
public class Headline implements Serializable {


    @TableId
    private Integer hid;
    private String title;
    private String article;
    private Integer type;
    private Integer publisher;
    private Integer pageViews;
    private Date createTime;
    private Date updateTime;

    /**
     * 版本号(用于乐观锁)
     */
    @Version
    private Integer version;

    /**
     * 逻辑删除标识(0-未删除 1-已删除)
     */
    private Integer isDeleted;

    private static final long serialVersionUID = 1L;
}